package v1

import (
	"context"
	"github.com/gin-gonic/gin"
)

func RegisterHTTPServer(r *gin.Engine, c HTTPClient) {
	r.GET("/hello_greeter", _Greed(c))
	r.GET("/get_user", _User(c))
}

type HTTPClient interface {
	SayHello(ctx context.Context, req HelloRequest) (HelloResponse, error)
	GetUser(ctx context.Context, req UserRequest) (UserResponse, error)
}
